import request from "@/utils/request";

//完成来料检验单
export function completedLl(data) {
  return request({
    url: "/quality/material/update" ,
    method: "PUT",
    data
  });
}
//查询来料检验单列表
export function getLlList(query) {
  return request({
    url: "/quality/material/list",
    method: "post",
    params: query,
  });
}
 
// 新增来料检验单列表
export function addLl(data) {
  return request({
    url: "/quality/material/add",
    method: "post",
    data: data,
  });
}
// 上传来料检验单
export function uploadLl(data) {
  return request({
    url: "/quality/material/upload",
    method: "post",
    data: data,
  });
}
// 删除来料检验单
export function delLl(id) {
  return request({
    url: "/quality/material/delete/id?=" + id,
    method: "delete",
  });
}
// 下载来料检验单
export function downloadLl(data) {
  return request({
    url: "/quality/material/download/image",
    method: "get"
  });
}
 //生成入库单
export function rkdLld(data) {
  return request({
    url: "/quality/material/addOrdersManual",
    method: "post",
    data
  });
}